package com.lsc.study.oop;

// 引用之传递   对象  地址
public class Demo02 {


    public static void main(String[] args) {

        /* 如何 获取 Person 类中的 name 值 */
        Person person = new Person();
//        ctrl +shift  +enter
//        alt + enter
        System.out.println(person.name);

        change(person);

        System.out.println(person.name);


    }


    public static void change(Person person) {
        person.name = "hanamaki";
    }
}

class Person {
    String name;
}
